package com.jichaoyun.common.enums;

public enum MyExceptiontType {

  SUCCESS(200, "成功"),
  PASSWORDNOTMATCH(403,"密码错误"),
  PASSWORDNOTALLOWEDNULL(403,"密码不能为空"),
  USERNOTFIND(403,"用户不存在"),
  VALVENOTFIND(403,"阀门不存在"),
  TOKENEXPIRED(403,"TOKEN失效"),
  USERNOTENABLE(403,"用户未启用"),
  ROLENOTENABLE(403,"角色未启用"),
  DUPLICATEUSERNAME(403,"用户名重复"),
  DUPLICATEVALVERNAME(403,"阀门名字重复"),
  DUPLICATEROLENAME(403,"角色名重复"),
  UPDATEERROR(403,"修改信息失败"),

  NOUSERNAME(403,"用户名为空"),

  DELETINGUSERERROR(403, "删除用户失败"),

  NOROLENAME(403,"角色名为空"),

  NOVALVENAME(403,"阀门名字为空"),

  NULL1(403,"找不到对应的线路"),

  DATAFINISH(408,"数据已加载全部"),

  DATAERROR(408,"开启程度数据不合法"),
  DATAERROR1(408,"历史节点数据异常,日报表结算时间的10分钟内的数据缺失，请更换其他结算时间节点！！"),
  DATAERROR2(408,"历史数据存在缺失"),
  ROLEEXIEST(403,"角色已存在"),

  IMAGEUPLOADFAILD(404,"图片资源上传失败"),
  IMAGEUPLOADFAILD0(404,"签名图片不存在"),
  IMAGEUPLOADFAILD1(404,"图片过大"),
  IMAGEUPLOADFAILD2(404,"图片重复"),
  IMAGEUPLOADFAILD3(404,"图片类型错误"),

  FILEDOWNLOADFAIL(500,"下载文件失败"),
  STATIONNOTFIND(501,"站点未找到"),
  STATIONEXIST(502,"站点已存在"),
  STATIONOUTLINE(503,"站点掉线"),

  STATIONALIASDUPLITE(501,"线路名称重复"),

  STATIONNODATA(503,"站点无数据"),

  ISNOTPORTERROR(501,"不是串口"),

  NOTPORTFOUNDERROR(501,"没有找到端口"),

  PORTUSEDERROR(501,"端口被占用"),

  ICCARDCONNECTERROR(501,"读卡器连接失败"),

  ICCARDKEYERROR(501,"密钥验证失败"),

  ICCARDREADERROR(501,"读取IC卡失败"),

  ICCARDNUMREADERROR(501,"读取卡号失败"),

  ICCARDBINDERROR(501,"该IC卡未绑定"),

  ICCARDBOUNDERROR(501,"该IC卡已被其他站点绑定"),

  STATIONICCARDBINDERROR(501,"该站点已绑定IC卡"),

  STATIONICCARDNOTBINDERROR(501,"该站点未绑定IC卡"),

  VALVENOTCONNECT(501,"该阀门未连接"),

  RECHARGEISNULL(504,"该充值记录为空"),
  RECHARGE_STATUS_ERR(505,"stutas处于不可操作状态"),

  Other(500,"其他");


  private Integer code;

  private String cnName;

  MyExceptiontType(Integer code, String cnName) {
    this.code = code;
    this.cnName = cnName;
  }

  public Integer getCode() {
    return code;
  }

  public void setCode(Integer code) {
    this.code = code;
  }

  public String getCnName() {
    return cnName;
  }

  public void setCnName(String cnName) {
    this.cnName = cnName;
  }
}
